package com.itheima;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) throws ParseException {
        Scanner  sc = new Scanner(System.in);
        System.out.println("请输入入职的日期:xxxx年xx月xx日");
        String joins = sc.next();

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
        Date joinsDate = sdf.parse(joins);

        long time = joinsDate.getTime();
        long nowTime = System.currentTimeMillis();

        long result = nowTime - time;
        System.out.println((result/1000/60/60/24)+"天");
    }
}
